//
//  UIViewController+showSelectPopView.m
//  dyss_v2
//
//  Created by LXF on 16/2/5.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import "UIViewController+showSelectPopView.h"

#import "PellTableViewSelect.h"

@implementation UIViewController (showSelectPopView)

-(void)showSelectPopViewWithWindowFrame:(CGRect)frame dataFromBlock:(void (^)(dataFromBlock block))dataFrom action:(void (^)(NSInteger index))action;{
    NSMutableArray *titleArrayM = [NSMutableArray array];
    NSMutableArray *imageArrayM = [NSMutableArray array];
    
    dataFrom(^(NSString *title,UIImage *image){
        [titleArrayM addObject:title];
        [imageArrayM addObject:image];
    });
    
    
    [PellTableViewSelect addPellTableViewSelectWithWindowFrame:CGRectMake(self.view.bounds.size.width-100, 64, 150, 200) selectData:titleArrayM images:imageArrayM action:action animated:YES];
}

-(void)hidenSelectPopView{
    [PellTableViewSelect hiden];
}

@end
